package com.example.backend.service;

import com.example.backend.entity.PingJia;
import com.example.backend.entity.vo.SJPLQ;

import java.util.HashMap;
import java.util.List;


public interface IPingJiaService {
    /**
     * 添加评价
     */
    public boolean addPingJia(PingJia pingJia);

    /**
     * 删除评价
     */
    public boolean deletePingJia(Integer pingjid);

    /**
     * 查询指定评价
     */
    public PingJia queryPingJia(Integer pjid);

    /**
     * 查询所有评价
     */
    public List<PingJia> queryPingJiaList();

    /**
     * 获取评分
     */
    public Double getAVGPinFen(Integer sjid);

    /**
     * 获取所有评价
     */
    public List<PingJia> getPinJias(Integer sjid);

    public HashMap<String,Object> getAllPingJiaAnalysis();

    public HashMap<String,Object> getSJPingJiaAnalysis(Integer sjid);

    List<PingJia> queryPingJiaByYhid(Integer yhid);

    List<SJPLQ> getSJPLQ(Integer sjid);

    boolean updatePingJia(PingJia pingJia);
}
